package cn.edu.xmu.oomall.aftersale.microservice;

import cn.edu.xmu.oomall.aftersale.model.vo.SimpleRegionVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author X-Raymond
 * @date 2021/12/8
 */
@FeignClient(value = "freight-service")
public interface RegionService {
    /**
     * 获取地区信息
     *
     * @param id
     * @return
     */
    @GetMapping("/internal/region/{id}")
    InternalReturnObject<SimpleRegionVo> getSimpleRegionById(@PathVariable("id") Long id);
}
